﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DongFangGuoKai.WMSPlatform.Core.Migrations
{
    public partial class M30 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Msg",
                table: "t_QueceRecard");

            migrationBuilder.AlterColumn<bool>(
                name: "DisplayStatus",
                table: "t_QueceRecard",
                type: "bit",
                nullable: true,
                comment: "显示状态",
                oldClrType: typeof(int),
                oldType: "int",
                oldDefaultValueSql: "((0))",
                oldComment: "显示状态");

            migrationBuilder.AlterColumn<bool>(
                name: "CallStatus",
                table: "t_QueceRecard",
                type: "bit",
                nullable: true,
                comment: "呼叫状态",
                oldClrType: typeof(int),
                oldType: "int",
                oldDefaultValueSql: "((0))",
                oldComment: "呼叫状态");

            migrationBuilder.AddColumn<string>(
                name: "CallMsg",
                table: "t_QueceRecard",
                type: "varchar(200)",
                unicode: false,
                maxLength: 200,
                nullable: true,
                comment: "呼叫信息");

            migrationBuilder.AddColumn<string>(
                name: "DisMsg",
                table: "t_QueceRecard",
                type: "varchar(200)",
                unicode: false,
                maxLength: 200,
                nullable: true,
                comment: "显示信息");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CallMsg",
                table: "t_QueceRecard");

            migrationBuilder.DropColumn(
                name: "DisMsg",
                table: "t_QueceRecard");

            migrationBuilder.AlterColumn<int>(
                name: "DisplayStatus",
                table: "t_QueceRecard",
                type: "int",
                nullable: false,
                defaultValueSql: "((0))",
                comment: "显示状态",
                oldClrType: typeof(bool),
                oldType: "bit",
                oldNullable: true,
                oldComment: "显示状态");

            migrationBuilder.AlterColumn<int>(
                name: "CallStatus",
                table: "t_QueceRecard",
                type: "int",
                nullable: false,
                defaultValueSql: "((0))",
                comment: "呼叫状态",
                oldClrType: typeof(bool),
                oldType: "bit",
                oldNullable: true,
                oldComment: "呼叫状态");

            migrationBuilder.AddColumn<string>(
                name: "Msg",
                table: "t_QueceRecard",
                type: "varchar(200)",
                unicode: false,
                maxLength: 200,
                nullable: true,
                comment: "备注");
        }
    }
}
